﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2.Exercise
{
    class Program
    {
        static void Main(string[] args)
        {
            string word = Console.ReadLine();
            StringBuilder word1 = new StringBuilder(word.Length);            
            for (int i = word.Length-1; i >=0; i--)
            {
                word1.Append(word[i]);
            }
            Console.WriteLine(word1.ToString());
            
        }
    }
}
